package com.nq.stock.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: st_stock
 * @Author: jeecg-boot
 * @Date:   2024-05-30
 * @Version: V1.0
 */
@Data
@TableName("st_stock")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StStock implements Serializable {
    private static final long serialVersionUID = 1L;

	// 美国
	public static final String COUNTRY_AMERICA = "america";
	// 印度
	public static final String COUNTRY_INDIA = "india";

	/**id*/
	@TableId(type = IdType.AUTO)
    private Integer id;
	/**市场名称*/
	@Excel(name = "市场名称", width = 15)
    private String market;
	/**股票代码*/
	@Excel(name = "股票代码", width = 15)
	@TableField(value = "`code`")
    private String code;
	/**股票名字*/
	@Excel(name = "股票名字", width = 15)
	@TableField(value = "`name`")
    private String name;
	/**周期*/
	@Excel(name = "周期", width = 15)
	@TableField(value = "`interval`")
    private String interval;
	/**在印度股票中contract=SM表示SM股票。contract=ST表示ST股票…在美股中contract=A表示某个交易所*/
	@Excel(name = "在印度股票中contract=SM表示SM股票。contract=ST表示ST股票…在美股中contract=A表示某个交易所", width = 15)
    private String contract;
	/**一般指股票的INE码，市场不同，有一定区别*/
	@Excel(name = "一般指股票的INE码，市场不同，有一定区别", width = 15)
    private String varieties;
	/**创建时间*/
    private Date createTime;
	/**更新时间*/
    private Date updateTime;
}
